package com.thuanhoang.boo.model;

import vn.com.hoasua.database.adbException;
import vn.com.hoasua.database.adbObject;

@SuppressWarnings("serial")
public class ObjUser extends adbObject{
	public static final String CLASS_UNIQUE="ObjUser";
	public static final int NUM_FIELDS=12;
	
	private String custId;
	private String booId;
	private String birthday;
	private String loginId;
	private String custAddress;
	private String custEmail;	
	private String custPhone;
	private String gender;
	private String custName;	
	private String loginType;
	private String deviceId;
	
	

	
	public ObjUser(int index, String... values) {
		super(index, values);
		
		try {
			if (values.length != NUM_FIELDS)
				throw new adbException(CLASS_UNIQUE+" length values invalid!");
		} catch (adbException e) {
			e.printStackTrace();
		}
		this.custId=values[0];
		this.booId=values[1];
		this.birthday = values[2];
		this.loginId = values[3];
		this.custAddress = values[4];
		this.custEmail = values[5];
		this.custPhone = values[6];
		this.gender = values[7];
		this.custName = values[8];
		this.loginType = values[9];
		this.deviceId = values[10];
	}
	@Override
	public String[] getValues() {
		values[0]=custId;
		values[1]=booId;
		values[2]=birthday;
		values[3]=loginId;
		values[4]=custAddress;
		values[5]=custEmail;
		values[6]=custPhone;
		values[7]=gender;
		values[8]=custName;
		values[9]=loginType;
		values[10]=deviceId;
		return values;
	}
	
	
	
	public String getCustId() {
		return custId;
	}
	public void setCustId(String custId) {
		this.custId = custId;
	}
	public String getBooId() {
		return booId;
	}
	public void setBooId(String booId) {
		this.booId = booId;
	}
	public String getBirthday() {
		return birthday;
	}
	public void setBirthday(String birthday) {
		this.birthday = birthday;
	}
	public String getLoginId() {
		return loginId;
	}
	public void setLoginId(String loginId) {
		this.loginId = loginId;
	}
	public String getCustAddress() {
		return custAddress;
	}
	public void setCustAddress(String custAddress) {
		this.custAddress = custAddress;
	}
	public String getCustEmail() {
		return custEmail;
	}
	public void setCustEmail(String custEmail) {
		this.custEmail = custEmail;
	}
	public String getCustPhone() {
		return custPhone;
	}
	public void setCustPhone(String custPhone) {
		this.custPhone = custPhone;
	}
	
	public String getGender() {
		return gender;
	}
	public void setGender(String gender) {
		this.gender = gender;
	}
	public String getCustName() {
		return custName;
	}
	public void setCustName(String custName) {
		this.custName = custName;
	}
	public String getLoginType() {
		return loginType;
	}
	public void setLoginType(String loginType) {
		this.loginType = loginType;
	}
	public String getDeviceId() {
		return deviceId;
	}
	public void setDeviceId(String deviceId) {
		this.deviceId = deviceId;
	}
	
	
}
